<?php
$userid = islogin();
$oCart = new Cart();
$r = $oCart->clear_cart($userid);	// 更新购物车
if($__f_sysvars['url_rewrite'] == 'html' || $__f_sysvars['url_rewrite'] == 'rewrite'){
		$url = PUB_DIR.'goods/';
	}else{
		$url = WEB_DIR.'index.php?mdl=goods';
	}
$custom = array(
	'ptitle'=> '清空购物车',
	'title'	=> '清空购物车'.($r > 0 ? '成功' : '失败'),
	'btns'	=> array('去购物' => $url),
	'jsdoc'	=> 'set_cookie("cart_num", "", -1);',
);
sysinfo($custom, $url, 5000);
?>